package com.example.tse.rbhttpservice.service.group.model;

import com.example.tse.rbhttpservice.service.RudderResponse;


/**
 * 获取团购列表，仅获取开始中的团购数据，如果用户已参与某团，按钮“我要开团”变成“我已参团”
 * @author wliu
 * edit tse
 */
public class GroupGetList extends RudderResponse{
    
    private String groupId = "";
		
    
    private String name = "";
		
    
    private String mainImage = "";
		
    
    private String endTime = "";
		
    
    private String joinNum = "";
		
    
    private String isJoined = "";
		
    
    private String curTime = "";
		
	
    /**
     * @return groupId
     */	
    public String getGroupId() { 
	    return this.groupId;
    };
	
	/**
     * @return groupId
     */	
    public void setGroupId(String groupId) { 
        this.groupId = groupId;
    };
    
    /**
     * @return name
     */	
    public String getName() { 
	    return this.name;
    };
	
	/**
     * @return name
     */	
    public void setName(String name) { 
        this.name = name;
    };
    
    /**
     * @return mainImage
     */	
    public String getMainImage() { 
	    return this.mainImage;
    };
	
	/**
     * @return mainImage
     */	
    public void setMainImage(String mainImage) { 
        this.mainImage = mainImage;
    };
    
    /**
     * @return endTime
     */	
    public String getEndTime() { 
	    return this.endTime;
    };
	
	/**
     * @return endTime
     */	
    public void setEndTime(String endTime) { 
        this.endTime = endTime;
    };
    
    /**
     * @return joinNum
     */	
    public String getJoinNum() { 
	    return this.joinNum;
    };
	
	/**
     * @return joinNum
     */	
    public void setJoinNum(String joinNum) { 
        this.joinNum = joinNum;
    };
    
    /**
     * @return isJoined
     */	
    public String getIsJoined() { 
	    return this.isJoined;
    };
	
	/**
     * @return isJoined
     */	
    public void setIsJoined(String isJoined) { 
        this.isJoined = isJoined;
    };
    
    /**
     * @return curTime
     */	
    public String getCurTime() { 
	    return this.curTime;
    };
	
	/**
     * @return curTime
     */	
    public void setCurTime(String curTime) { 
        this.curTime = curTime;
    };
    
	
        
    public static void filter(GroupGetList group) {
        if (group.getGroupId() == null) {
            group.setGroupId("");
        }
        if (group.getName() == null) {
            group.setName("");
        }
        if (group.getMainImage() == null) {
            group.setMainImage("");
        }
        if (group.getEndTime() == null) {
            group.setEndTime("");
        }
        if (group.getJoinNum() == null) {
            group.setJoinNum("");
        }
        if (group.getIsJoined() == null) {
            group.setIsJoined("");
        }
        if (group.getCurTime() == null) {
            group.setCurTime("");
        }
    }
}
